<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>展示页面</title>
</head>
<body>
	<table border="1" >
			<tr>
				<th>id</th>
				<th>所属栏目</th>
				<th>题目</th>
				<th>内容</th>
				<th>链接类型</th>
				<th>链接地址</th>
				<th>添加时间</th>
				<th>修改时间</th>
				<th>修改</th>
				<th>删除</th>
			</tr>
		<c:forEach var="news" items="${list}">
			<tr>
				<td>${news.id}</td>
				<td>${news.newsChannelName}</td>
				<td>${news.title}</td>
				<td>${news.content}</td>
				<td>${news.linktype}</td>
				<td>${news.linkurl}</td>
				<td>${news.addtime}</td>
				<td>${news.edittime}</td>
				<td><a href="NewsGetServlet?id=${news.id}">修改</a></td>
				<td><a href="NewsDeleteServlet?id=${news.id}">删除</a></td>
			</tr>
		</c:forEach>
	</table>
	<a href="NewspreAddServlet?">添加</a>
	<br/>
	<br/>
	<table bordercolor="1" >
	
	<tr>
		<th>id</th>
		<th>栏目</th>
		<th>修改</th>
		<th>删除</th>
	</tr>
	<c:forEach var="newsChannel" items="${newsChannellist}">
	<tr>
		<td>${newsChannel.id}</td>
		<td>${newsChannel.name}</td>
		<td><a href="NewsChannelGet?id=${newsChannel.id}">修改</a></td>
		<td><a href="NewsChannelDelete?id=${newsChannel.id}">删除</a></td>
	</tr>
	</c:forEach>
	
	</table>
	<a href="channeladd.jsp">添加</a>
	
</body>
<script>
</script>
</html>